<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<link href="<%=request.getContextPath()%>/css/Style.css"
			type="text/css" rel="stylesheet">
		<link href="<%=request.getContextPath()%>/css/admin.css"
			type="text/css" rel="stylesheet">
		<script type="text/javascript"
			src="<%=request.getContextPath()%>/js/img.js"></script>
		<script type="text/javascript"
			src="<%=request.getContextPath()%>/js/jquery-1.3.2.js"></script>
		<script type="text/javascript"
			src="<%=request.getContextPath()%>/js/select.js"></script>
		<script type="text/javascript">
			//删除
function delData(pid) {
	var flag = false;
	var s = "";
	for (i = 0; i < document.getElementsByName("sel").length; i++) {
		if (document.getElementsByName("sel")[i].checked) {
			s += document.getElementsByName("sel")[i].value + ",";
			flag = true;
		}
	}
	if (flag == false) {
		alert("\u81f3\u5c11\u9009\u62e9\u4e00\u6761\u8bb0\u5f55!");
		return false;
	}
	if (confirm("\u786e\u5b9a\u8981\u5220\u9664\u5417\uff1f")) {
		var jobName = document.getElementById("jobName").value;
		encodeURI(encodeURI(jobName))
		window.self.location = "delApplies.htm?ids="+s+"&id="+document.getElementById("spee").value+"&pid="+pid;
	}
}

//上下页
function toPage(currentPage) {
	var jobName = document.getElementById("jobName").value;
	jobName = encodeURI(encodeURI(jobName));
	window.self.location = "getApplies.htm?currentPage="+currentPage+"&id="+document.getElementById("spee").value+"&jobName="+jobName;
}


//跳转到详情
function toDesc(url,id) {
	 window.showModalDialog(url+"/admin/getApplyIno.htm?id="+id,"new","dialogHeight: 500px; dialogWidth: 700px; dialogTop: 100px; dialogLeft: 255px; edge: Raised;");
}

//返回上一级
function hositoryGo(url) {
	window.self.location = url;
}
		
</script>
		<title>应聘情况列表</title>
	</head>
	<body>
		<form action="<%=request.getContextPath()%>/"
			method="post" id="n_form">
			<table cellspacing="0" cellpadding="0" border="0" align="center"
				width="800">
				<tbody>
					<tr>
						<table width="100%" cellspacing="0" cellpadding="0"
							bordercolor="#003366" border="1" class="Table1">
							<tbody>
								<tr height="30px" class="thead">
									<td colspan="16">
										当前位置：诚聘英才 &gt;应聘简历  <br> <br>&nbsp;&nbsp;应聘职位 ：${jobInfo.post }
									</td>
								</tr>
								<tr height="30px">
									<td colspan="16">
										<span class="top_c"><input type="button" class="btn"
												onclick="delData('${jobInfo.id }');" value="删除"> </span>
										<span class="top_c"><input type="button" class="btn"
												onclick="hositoryGo('${pageContext.request.contextPath }/admin/getJobInfos.htm');" value="返回上一级"> </span>
									</td>
								</tr>
								<tr style="font-weight: bold; background: #EEEEEE;">
									<td height="25" align="center">
										<input id="cal" value="1" type="checkbox"
											onclick="selAll(value);" style="border: red 2px;">
									</td>
									<td height="25" align="center">
										姓名
									</td>
									<td height="25" align="center">
										性别
									</td>
									<td height="25" align="center">
										投递日期
										<input type="hidden" name="id" id="spee" value="${id }">
									</td>
									<td height="25" align="center">
										详情
									</td>
									
								</tr>
								<c:forEach items="${pageBean.objs}" var="apply">
									<tr>
										<td height="25" align="center">
											<input id="sel" name="sel" value="${apply.id }" type="checkbox">
										</td>
										<td height="25" align="center">
											${apply.name }
										</td>
										<td height="25" align="center">
											${apply.sex }
										</td>
										<td height="25" align="center">
											${apply.recordDate }
										</td>
										<td height="25" align="center">
											<a href="javascript:toDesc('${pageContext.request.contextPath}','${apply.id }')">查看详情</a>
										</td>
									</tr>
								</c:forEach>

								<tr>
									<td colspan="16" height="30px" align="right">
										<span style="padding-right: 10px">[第<b>${pageBean.currentPage
												}</b>页|共<b>${pageBean.allPages }</b>页] <c:if
												test="${pageBean.currentPage <=1}">
												<span class="disable">&lt;&lt;上一页</span>
											</c:if> <c:if test="${pageBean.currentPage > 1}">
												<span class="enable"
													onclick="toPage(${pageBean.currentPage-1})">&lt;&lt;上一页</span>
											</c:if> <c:if test="${pageBean.currentPage < pageBean.allPages }">
												<span class="enable"
													onclick="toPage(${pageBean.currentPage+1})">下一页&gt;&gt;</span>
											</c:if> <c:if test="${pageBean.currentPage >= pageBean.allPages }">
												<span class="disable">下一页&gt;&gt;</span>
											</c:if> </span>
									</td>
								</tr>
							</tbody>
						</table>











					</tr>
					<tr>
						<td style="height: 10px;" colspan="4"></td>
					</tr>

					<tr>
					</tr>
				</tbody>
			</table>
			<input type="hidden" name="nodeid" value="${nodeid}">
			<input type="hidden" name="type" value="${type}">
			<input type="hidden" name="currentPage" value="" id="currentPage">
		</form>
	</body>
</html>